package com.bw.risk.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bw.risk.pojo.TbRiskBlack;
import com.bw.risk.service.TbRiskBlackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 黑名单 前端控制器
 * </p>
 *
 * @author lv
 * @since 2021-03-23
 */
@RestController
@RequestMapping("/tb-risk-black")
public class TbRiskBlackController {

    @Autowired
    private TbRiskBlackService blackService;

    //黑名单列表
    @GetMapping("/list")
    public List<TbRiskBlack> list(){
        Page<TbRiskBlack> page = new Page<>(1, 2);
        return blackService.list();
    }
}
